<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/19
 * Time: 11:48
 */
$a = [];
array_push($a,"a",'b','c');
//var_dump($a);

function myPush(&$arr){//$arr = &$b;
    //func_get_args()
    $tmpArrs = func_get_args();
//    var_dump($tmpArrs);
    for($i=1;$i<func_num_args();$i++){
        $arr[] = $tmpArrs[$i];
    }
    var_dump($arr);
    return count($arr);
}
$b = ['aaa','bbb'];
myPush($b,"a",'b','c');

var_dump($b);

//$a = 10;
//$b = &$a;
